package com.itheima.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author huyoufu <https://github.com/huyoufu>
 * @TIME 2020-08-13 15:14
 * @description
 */
@Controller
@RequestMapping("/foo")
public class FooController {
    @RequestMapping("/foo1")
    public String foo1(){

        //故意模拟一个错误
        int i=5/0;


        return "foo/success";
    }
}
